import request from '@/utils/request'

//链接列表
export function linkList(data) {
    return request({
        url: '/link',
        method: 'get',
        params: data
    })
}

//添加链接
export function linkAdd(data) {
    return request({
        url: '/link',
        method: 'post',
        data
    })
}

//修改链接
export function linkUpdate(data) {
    return request({
        url: '/link',
        method: 'put',
        data
    })
}

//删除链接
export function linkDelete(id) {
    return request({
        url: '/link',
        method: 'delete',
        params: {
            id
        }
    })
}